import { forwardRef, useImperativeHandle } from 'react';
const Children = forwardRef((props, ref) => {
  const handleClick = (event) => {
    console.log('我被触发了');
  };
  useImperativeHandle(ref, () => ({
    handleClick,
  }));
  return <div>{props.data}</div>;
});
export default Children;
